package com.classtest.DemoExpend.service.Impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.classtest.DemoExpend.bean.DbGoods;
import com.classtest.DemoExpend.dao.DbShopDao;
import com.classtest.DemoExpend.service.DbShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DbShopServiceImpl extends ServiceImpl<DbShopDao, DbGoods> implements DbShopService {
    @Autowired
    DbShopDao dbShopDao;

    @Override
    public List<DbGoods> getShopCount(String json) {
    return dbShopDao.getShopCount(JSONObject.parseObject(json,DbGoods.class));
    }
}
